﻿<?php 
include_once("../function.php");
//print_r($_GET);print_r($_COOKIE);//Array ( [o_pid] => 158 [user_id] => 5 [goods_id] => 161 )
extract($_GET);
//print_r($_COOKIE);//Array ( [pwd] => 123456 [rem] => on [PHPSESSID] => ug8stf9m0qs96gqfa8icajv8hl [usname] => wwwmmm [username] => wwwmmm )
?>
<!doctype html>
<html>
 <head>
  <title>我的订单</title>
  <meta charset="utf-8"/>
    <style>
  *{margin:0px;padding:0px;}
#big{
	 width:100%;
	 height:780px;
	 border:1px solid red;
	 margin:20px auto;
	}
ul{
	 list-style-type:none;float:left;
	}
li{
	float:left;
	margin-left:15px;
	font-size:0.5em;
	color:#a5a5a5;
	
	}
span{
	float:right;
	}
.p0{
	margin-left:20px;
	}
.xs{
	margin-left:20px;
	height:50px;
	width:auto;
	border:0px solid red;
	}
.xc1{
	font-size:2em;
	margin-right:50px;
	}
#xw{
	width:100%;
	height:40px;
	border:1px solid;
	background:#1F81B0;
	line-height:40px;
	font-size:2.5em;
	
	}
	ul a:-webkit-any-link {text-decoration:none;
    color:white;
    cursor: pointer;}
ul li{margin-left:35px;
    color:white;
	
}
 	
#fl{
	margin-left:50px;
	font-size:1.3em;
	}
#s{float:left;margin-left:30px;font-size:20px;width:200px;height:20px;}
#middle{width:100%;height:auto;border:0px solid red;}
#order{margin-top:30px;border:0px solid #787878;}
a{text-decoration:none;color:black;}
table{border-color:#e4e4e4;}
#good{width:600px;height:20px;margin-top:70px;margin-left:500px;font-size:1.5em;color:green;}
</style>
 </head>

 <body>
<?php include_once("./login_top.php");?>
<div id="s">
	<span class="sp1"><font color="#b6b6b6">当前所在></font>我的评价</span>
</div>
<div id="middle">
<form action="./do_pinglun.php" method="get">
	<div id="good">
		<input type="radio" name="pingjia" value="3" checked>好评
		<input type="radio" name="pingjia" value="2">中评
		<input type="radio" name="pingjia" value="1">差评
	</div>
	<div id="order">
		<textarea name="pinglun" id="" cols="80" rows="25" style="margin-left:500px;border:2px solid #787878;"></textarea>
	</div>
	<input type="hidden" name="o_pid" value="<?=$o_pid?>">
	<input type="submit" name="sub" value="提交" style="background-color:#6CBDEC; width:150px; height:45px ;color:black;font-size:28px;margin-left:550px;margin-top:20px;" />
	<input type="reset" name="" value="取消" style="background-color:#b8b8b8; width:150px; height:45px ;color:white;font-size:28px;margin-left:150px;" />
	</form>
</div>	
<div style="margin-top:50px;"><hr></div>
</div>	
	<div style="clear:both;width:100%;height:150px;border:0px solid yellow;">
	<?php $sql="select * from ts_news_cate where level=1";
		  $res=mysqli_query($link,$sql);
		  if(is_object($res))
		  {
			  if(mysqli_num_rows($res)>0)
			  {
				$arr=array();
				while(($one=mysqli_fetch_assoc($res))!=false)
				  {
				  $arr[]=$one;
				  }
				 }?>
					
				<?php foreach($arr as $v){?>
				<div style="float:left;margin-left:250px;border:0px solid red;font-size:16px;margin-top:7px;"><div style="border:px solid blue;font-size:19px;margin-left:-8px;"><?=$v["cname"]?></div>
					<?php $sql="select * from ts_news_cate where fid=$v[cid]";
					$res=mysqli_query($link,$sql);
					if(is_object($res))
					 {
						$arr2=array();
						while(($one1=mysqli_fetch_assoc($res))!=false)
						 {
							$arr2[]=$one1;
						 }
						foreach($arr2 as $vo)
						 {?>
							<div><a href="news.php"><?=$vo["cname"]?></a></div>
						<?php }
					}?>
						</div>
			<?php }
					
			 }
	?>
</div>
		
<hr color="#e5e5e5"/>
<div id="db">
	<div style="margin-left:800px;margin-top:10px;">
			关于我们|法律声明|工作机会|联系我们
	</div>

	<div style="margin-left:600px;margin-top:20px;color:#a8a8a8;">
		Copyright@2013 Thinksite Co.Let night reserved 经营许可证编号：苏A-12345678
	</div>
</div>

 </body>
</html>
